package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.HrFkJl;
import com.ruoyi.system.mapper.HrFkJlMapper;
import com.ruoyi.system.service.IHrFkJlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 访客信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-17
 */
@Service
public class HrFkJlServiceImpl implements IHrFkJlService
{
    @Autowired
    private HrFkJlMapper hrFkJlMapper;

    /**
     * 查询访客信息
     * 
     * @param autoid 访客信息主键
     * @return 访客信息
     */
    @Override
    public HrFkJl selectHrFkJlByAutoid(Long autoid)
    {
        return hrFkJlMapper.selectHrFkJlByAutoid(autoid);
    }

    /**
     * 查询访客信息列表
     * 
     * @param hrFkJl 访客信息
     * @return 访客信息
     */
    @Override
    public List<HrFkJl> selectHrFkJlList(HrFkJl hrFkJl)
    {
        return hrFkJlMapper.selectHrFkJlList(hrFkJl);
    }

    /**
     * 新增访客信息
     * 
     * @param hrFkJl 访客信息
     * @return 结果
     */
    @Override
    public int insertHrFkJl(HrFkJl hrFkJl)
    {
        return hrFkJlMapper.insertHrFkJl(hrFkJl);
    }

    /**
     * 修改访客信息
     * 
     * @param hrFkJl 访客信息
     * @return 结果
     */
    @Override
    public int updateHrFkJl(HrFkJl hrFkJl)
    {
        return hrFkJlMapper.updateHrFkJl(hrFkJl);
    }

    /**
     * 批量删除访客信息
     * 
     * @param autoids 需要删除的访客信息主键
     * @return 结果
     */
    @Override
    public int deleteHrFkJlByAutoids(Long[] autoids)
    {
        return hrFkJlMapper.deleteHrFkJlByAutoids(autoids);
    }

    /**
     * 删除访客信息信息
     * 
     * @param autoid 访客信息主键
     * @return 结果
     */
    @Override
    public int deleteHrFkJlByAutoid(Long autoid)
    {
        return hrFkJlMapper.deleteHrFkJlByAutoid(autoid);
    }
}
